<?php
/**
 * 局部配置
 *
 * @author 孙晓晔
 * @version $Id: config.php 1051 2010-04-07 08:55:38Z sunxy $
 */

$skins = array(
    "htm" => array("tpl"=>"htm", "tpl_dir"=>"/c/admin/tpl/", "version"=>"4.1",),
	"xls" => array("tpl"=>"xls", "tpl_dir"=>"/c/admin/tpl/", "version"=>"0.1"),
	"doc" => array("tpl"=>"doc", "tpl_dir"=>"/c/admin/tpl/", "version"=>"0.2"),
	"xml" => array("tpl"=>"xml", "tpl_dir"=>"/c/admin/tpl/", "version"=>"6.2",),
	"txt" => array("tpl"=>"txt", "tpl_dir"=>"/c/admin/tpl/", "version"=>"0.3"),
);

require_once(APP_LIB . 'MySQL.class.php');
require_once(APP_LIB . 'Pager.class.php');
require_once(APP_LIB . 'PgSQL.class.php');

require_once(APP_ROOT . '/inc/ydt.php');

require_once(APP_ROOT . "/lib/AdminController.class.php");

$CategoryTree = array(
	'class'	  => 'Opened',

	'我的信息' => array (		
		// '联系信息' => array('cc'=>'my.php?do=My.contact', 'js'=>''),
		'我的产品' => array('cc'=>'mold.php?do=MoldMy.tab', 'js'=>''),

		'日常工作' => array('cc'=>'my.php?do=My.tab', 'js'=>''),
		'物料信息' => array('cc'=>'material.php?do=Material.tab', 'js'=>''),
		
		'信息中心' => array('cc'=>'contact.php?do=Supplier.tab_id', 'js'=>''),
			
		'我的财务' => array('cc'=>'my.php?do=My.finance', 'js'=>''),		
		'我的考勤' => array('cc'=>'kq.php?do=OvertimeMy.tab', 'js'=>''),

		'我的电话' => array('cc'=>'tel.php?do=CdrMy.tab', 'js'=>''),
		'我的设置' => array('cc'=>'my.php?do=My.setting', 'js'=>''),
		'我的档案' => array('cc'=>'my.php?do=My.layout', 'js'=>''),

'邮件管理' => array('cc'=>'mail.php?do=Mail.layout', 'js'=>''),
// '传真管理' => array('cc'=>'fax.php?do=Fax.tab', 'js'=>''),
		/*
		'测试' => array (		
			'关于我们' => array('cc'=>'info.php?do=Help.aboutus', 'js'=>''),
			'测试2' => array('cc'=>'log.php?do=Js.b', 'js'=>''),
			'SQL' => array('cc'=>'info.php?do=Sql.find', 'js'=>''),
			'抽奖程序' => array('cc'=>'info.php?do=Lucky.layout', 'js'=>''),
		),*/
	),
	
	'系统管理' => array (		
		'系统工具' => array('cc'=>'core.php?do=Yang.tab', 'js'=>''),
		'系统参数' => array('cc'=>'info.php?do=Code.tab', 'js'=>''),
		'日常信息' => array('cc'=>'info.php?do=Contact.tab', 'js'=>''),
		'日志信息' => array('cc'=>'log.php?do=LogAction.tab', 'js'=>''),

		'认证计费' => array('cc'=>'radius.php?do=Radcheck.tab', 'js'=>''),
		
		'文件系统' => array('cc'=>'mogilefs.php?do=File.tab', 'js'=>''),
	),
		
	'网络管理' => array (
		'上网认证' => array('cc'=>'wifi.php?do=User.tab', 'js'=>''),
		'即时消息' => array('cc'=>'jabber.php?do=User.tab', 'js'=>''),
			
		'电话管理' => array('cc'=>'tel.php?do=Cdr.tab', 'js'=>''),
		
		'网络信息' => array('cc'=>'log.php?do=Arp.tab', 'js'=>''),
		'vpn管理' => array('cc'=>'vpn.php?do=User.tab', 'js'=>''),
	),
	
	'员工管理' => array (
		'员工信息' => array('cc'=>'emp.php?do=Emp.tab', 'js'=>''),
		'网络信息' => array('cc'=>'emp.php?do=Mac.tab', 'js'=>''),
		'邮箱管理' => array('cc'=>'emp.php?do=Vpopmail.tab', 'js'=>''),		
		'系统设置' => array('cc'=>'emp.php?do=User.layout', 'js'=>''),	
		'权限管理' => array('cc'=>'emp.php?do=EmpPriv.tab', 'js'=>''),
		'角色管理' => array('cc'=>'info.php?do=Role.tab', 'js'=>''),
	),

	'客户管理' => array (
		'客户管理' => array('cc'=>'contact.php?do=Customer.tab', 'js'=>''),
		'报价客户' => array('cc'=>'contact.php?do=CustomerMy.tab', 'js'=>''),	
		'潜在客户' => array('cc'=>'customer.php?do=Email.tab', 'js'=>''),
		'报价管理' => array('cc'=>'customer.php?do=Quote.tab', 'js'=>''),
		'我的报价' => array('cc'=>'customer.php?do=QuoteMy.tab', 'js'=>''),
	),

	'物料管理' => array (
		'材料信息' => array('cc'=>'material.php?do=Material.tab', 'js'=>''),		
		'采购管理' => array('cc'=>'material.php?do=Bom.tab', 'js'=>''),		
		'仓库管理' => array('cc'=>'material.php?do=Amount.tab', 'js'=>''),
		'合同管理' => array('cc'=>'finance.php?do=ContractMy.tab', 'js'=>''),
	),

	'产品管理' => array (		
		'产品管理' => array('cc'=>'mold.php?do=Mold.tab', 'js'=>''),
		'生产管理' => array('cc'=>'mold.php?do=Work.tab', 'js'=>''),
		'外发加工' => array('cc'=>'mold.php?do=Process.tab', 'js'=>''),
		'产品质检' => array('cc'=>'mold.php?do=Testing.tab', 'js'=>''),
	),

	'注塑管理' => array (
		'注塑管理' => array('cc'=>'zs.php?do=Plan.tab', 'js'=>''),
	),

	'货运管理' => array (
		'货运管理' => array('cc'=>'express.php?do=Plan.tab', 'js'=>''),
	),
	
	'行政中心' => array (		
		'任务管理' => array('cc'=>'mold.php?do=Plan.tab', 'js'=>''),
		
		'电话管理' => array('cc'=>'tel.php?do=Cdr.tab', 'js'=>''),
		// '视频监控' => array('cc'=>'zm.php?do=Monitors.tab', 'js'=>''),
		'用车管理' => array('cc'=>'car.php?do=Car.tab', 'js'=>''),
			
		'维修单' => array('cc'=>'car.php?do=Maintain.tab', 'js'=>''),
			
		'帐户管理' => array('cc'=>'info.php?do=Account.tab', 'js'=>''),
	
		'帮助管理' => array('cc'=>'info.php?do=Help.tab', 'js'=>''),
		'会议管理' => array('cc'=>'info.php?do=Conference.tab', 'js'=>''),
		
		// '文档管理' => array('cc'=>'document.php?do=Document.tab', 'js'=>''),
		'职位信息' => array('cc'=>'info.php?do=Position.layout', 'js'=>''),
		'网站管理' => array('cc'=>'info.php?do=Feedback.tab', 'js'=>''),
		'招聘职位' => array('cc'=>'info.php?do=Job.tab', 'js'=>''),
	
		'题库管理' => array('cc'=>'exam.php?do=Question.tab', 'js'=>''),
	),
		
	'考勤管理' => array (	    
		'考勤管理' => array('cc'=>'kq.php?do=Kq.tab', 'js'=>''),	
		'排班模板' => array('cc'=>'kq.php?do=Template.tab', 'js'=>''),
	),
	
	'财务管理' => array (
		'固定资产' => array('cc'=>'finance.php?do=Asset.tab', 'js'=>''),
		'财务信息' => array('cc'=>'finance.php?do=MoneyMy.tab', 'js'=>''),
		'报销管理' => array('cc'=>'finance.php?do=Expense.tab', 'js'=>''),
		'付款管理' => array('cc'=>'finance.php?do=Payment.tab', 'js'=>''),
		'收款管理' => array('cc'=>'finance.php?do=Transaction.tab', 'js'=>''),
	
		'合同管理' => array('cc'=>'finance.php?do=Contract.tab', 'js'=>''),
		'收入支出' => array('cc'=>'finance.php?do=In.tab', 'js'=>''),
		'工资管理' => array('cc'=>'finance.php?do=Salary.tab', 'js'=>''),
	),

	'退出' => 'index.php?do=Admin.logout',
);

function cmp($a, $b) {
	if ($a[0] == $b[0]) return 0;

	return ($a[0] < $b[0]) ? 1 : -1;
}
?>
